<?php 
require_once("header.php"); 

/* If Categories */
if ( $view == "categories" ) 
{
	require_once("pages/categories.php");
} 
/* If All Products  */
else if ( $view == "all" || $view == "products" ) 
{
	require_once("pages/products.php");
}
/* If Single Product */
else if ( $view == "product" && is_numeric($id) )
{
	require_once("pages/product.php");
}
/* In Other conditions Display Home Page */
else {
	require_once("pages/home.php");
}

require_once("footer.php");


